package guiTegoNieBedzie;

import java.util.LinkedList;
import javax.swing.DefaultComboBoxModel;

public abstract class FComboBoxModel extends DefaultComboBoxModel 
{
	private static final long serialVersionUID = 8690070880022988378L;
	protected LinkedList<?> data;
	protected Object selected;

	public Object getSelectedItem() 
	{
		return this.selected;
	}
	public void setSelectedItem(Object selected) 
	{
		this.selected = selected;
	}
	public AbstractDataObject getElementAt( int elemIndex ) 
	{
		return (AbstractDataObject) this.data.get( elemIndex );
	}
	public int getSize() 
	{
		return this.data.size();
	}
}
